package com.ele.pojo;

import java.util.Date;
import java.util.Objects;

public class Business {
    public  Integer id;
    public String account;
    public String password;
    public Date regTime;
    public String telephone;
    public String contact;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getRegTime() {
        return regTime;
    }

    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Business)) return false;
        Business business = (Business) o;
        return Objects.equals(getId(), business.getId()) && Objects.equals(getAccount(), business.getAccount()) && Objects.equals(getPassword(), business.getPassword()) && Objects.equals(getRegTime(), business.getRegTime()) && Objects.equals(getTelephone(), business.getTelephone()) && Objects.equals(getContact(), business.getContact());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getAccount(), getPassword(), getRegTime(), getTelephone(), getContact());
    }
}
